import http from '@/utils/httpRequest.js'
export function policy(file) {
    console.log("policy:",file)
   return  new Promise((resolve,reject)=>{
        http({
            url: 'http://localhost:8888/fastFile/upload',
            method: "get",
            headers:{
                'Content-Type': 'multipart/form-data'
            },
            params: file
        }).then(({ data }) => {
            resolve(data);
        })
    });
}